﻿/*
http://www.songcms.com
*/

//具体参数见 config_basic.js 文件
CKEDITOR.editorConfig = function(config){
	config.language = 'zh-cn'; //设置语言
	config.enterMode = CKEDITOR.ENTER_BR; //回车
	config.shiftEnterMode = CKEDITOR.ENTER_P; // Shift + Enter
	//全部扩展
	//删除了：PageBreak 分页
	config.toolbar = [
		['Source','-','Save','NewPage','Preview','Templates'],
		['Cut','Copy','Paste','PasteText','PasteFromWord'],
		['SelectAll','RemoveFormat'],
		['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
		['ShowBlocks','Maximize', '-','About'],
		'/',
		['Bold','Italic','Underline','Strike','Subscript','Superscript'],
		['NumberedList','BulletedList','Outdent','Indent','Blockquote','CreateDiv','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['Link','Unlink','Anchor'],
		['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'],
		'/',
		['Styles','Format','Font','FontSize'],
		['TextColor','BGColor','-','Undo','Redo','Find','Replace','-','Print', 'SpellChecker', 'Scayt']
	];
	
	config.font_names = '宋体;黑体;隶书;楷体_GB2312;幼圆;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana';	
	config.extraPlugins = ''; //额外插件
	config.removePlugins = 'about'; //删除的插件
	config.skin = 'kama'; //风格
	config.uiColor = '#D9D9D9'; //背景色
	
	config.width = 662;
	config.height = 250;
	
	//整合ckfinder
	config.filebrowserBrowseUrl = '../tools/ckeditor/ckfinder.html';
	config.filebrowserImageBrowseUrl = '../tools/ckeditor/ckfinder.html?Type=Images';
	config.filebrowserFlashBrowseUrl = '../tools/ckeditor/ckfinder.html?Type=Flash';
	config.filebrowserUploadUrl = '../tools/ckeditor/core/connector/php/connector.php?command=QuickUpload&type=Files';
	config.filebrowserImageUploadUrl = '../tools/ckeditor/core/connector/php/connector.php?command=QuickUpload&type=Images';
	config.filebrowserFlashUploadUrl = '../tools/ckeditor/core/connector/php/connector.php?command=QuickUpload&type=Flash';
};
